package edu.sctu.practice.class01.liangyuxiang.assign02;

/**
 * Created by  on 2015/10/15.
 */
public class Circle {

    private double radius;
    private static int numOfObjects;
    public final double PI = 3.14;

    public Circle(double radius){
        this.radius = radius;
        numOfObjects++;
    }

    public static void printCircle(Circle c){
        double area = c.radius*c.radius*c.PI;

        System.out.println("半径:"+c.radius);
        System.out.println("面积:"+area);
        System.out.println("创建对象个数:"+numOfObjects);
    }
}
